package com.jxl.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 线路表
 * </p>
 *
 * @author 金小梁
 * @since 2025-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("route")
@ApiModel(value="Route对象", description="线路表")
public class Route implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "线路编号")
    private String routeNo;

    @ApiModelProperty(value = "线路名称")
    private String name;

    @ApiModelProperty(value = "线路状态（1:启运, 0:停运）")
    private Integer status;

    @ApiModelProperty(value = "首次开通时间")
    private LocalDate startDate;

    @ApiModelProperty(value = "线路方向（1:上行, 2:下行）")
    private Integer direction;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
